from base.app_base import AppBase
import page
from time import sleep
from tools.get_log import GetLog
logger = GetLog.get_logger()


class ZoPageCheckWorkBench(AppBase):
    # 1.点击工作台
    def zo_page_click_workbench(self):
        sleep(1)
        self.base_click(page.zo_workbench_button)

    # 2.判断页面标题是否为工作台
    def zo_page_is_workbench(self):
        sleep(0.5)
        return self.base_get_text(page.zo_workbench_title)

    # 3.组合跳转工作台业务方法
    def zo_page_check_workbench(self):
        logger.info("正在调用app中欧crm跳转工作台业务方法")
        self.zo_page_click_workbench()


